﻿using Volo.Abp.DependencyInjection;
using YAPACS.BusinessObjects.Exams;
using YAPACS.Workflows;

namespace YAPACS.RisServer.Workflows.Report;

public class GetExam : WorkflowBase, IGetExam, ITransientDependency
{
    protected override async Task<WorkflowOutput> InvokeCoreAsync(WorkflowInput input)
    {
        object data = null;
        if (input.ContainsKey("Exam") && input.GetValueOrDefault("Exam") is Exam exam)
        {
            exam.Report.ImageOpinion = "||无||";
        }
        return await Task.FromResult(new WorkflowOutput
        {
            Success = true,
            Data = data
        });
    }
}
